package com.zzxy.service.impl;

import com.zzxy.dao.IStudentDao;
import com.zzxy.service.IStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentServiceImpl implements IStudentService {
   @Autowired
    private IStudentDao studentDao;

//    public IStudentDao getStudentDao() {
//        return studentDao;
//    }
//
//    public void setStudentDao(IStudentDao studentDao) {
//        this.studentDao = studentDao;
//    }

    @Override
    public void addStudent(String username, String password) {

        studentDao.addStudent(username,password);
    }
    public int updateStudent(int id) {

        System.out.println("update student");
        return id;
    }
    public void deleteStudent(int id) {

        System.out.println("delete student");
    }
}
